package com.kly.chatter.api.application.service.impl;

import com.kly.chatter.api.application.service.PrivateUnlockRewardService;
import com.kly.chatter.db.dao.PrivateUnlockRewardDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class PrivateUnlockRewardServiceImpl implements PrivateUnlockRewardService {

    @Autowired
    private PrivateUnlockRewardDao privateUnlockRewardDao;

    @Override
    public BigDecimal getUnlockTotalReward(String chatterCode, Integer rewardDate) {
        return privateUnlockRewardDao.getUnlockTotalReward(chatterCode, rewardDate);
    }

    @Override
    public BigDecimal getUnlockRewardByType(String chatterCode, Integer rewardDate, Integer type, Integer rewardType) {
        return privateUnlockRewardDao.getUnlockRewardByType(chatterCode, rewardDate, type, rewardType);
    }

    @Override
    public Integer getUnlockNum(String chatterCode, Integer rewardDate, Integer type) {
        return privateUnlockRewardDao.getUnlockNum(chatterCode, rewardDate, type);
    }
}
